<script>
$(function(){
    $('img[class=audit]').click(function(){
        $.post(location.href,{customer_id:$(this).attr('rel')},function(data){
            window.location.reload();
        },'json');
    });
});
</script>
<div class="t_2">
     <div class="fl">未审核客户列表</div>
     <div class="fr add_form"><a href="?app=customer&mod=list" id="add_table">已审核客户列表</a></div>
</div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table1">
       <tr>
            <th class="th0">编号</th>
            <th class="th1">客户名称</th>
            <th class="th0">座机</th>
            <th class="th1">手机</th>
            <th class="th1">邮箱</th>
            <th class="th1">地址</th>
            <th class="th1">注册时间</th>
            <th class="th0">操作</a>
       </tr>
       <?php foreach((array)$this->customers as $customer): ?> 
       <tr>
            <td><?php echo $customer['customer_id']; ?></td>
            <td><?php echo $customer['customer_name']; ?></td>
            <td><?php echo $customer['tel']; ?></td>
            <td><?php echo $customer['mobile']; ?></td>
            <td><?php echo $customer['email']; ?></td>
            <td><?php echo $customer['address']; ?></td>
            <td><?php echo date('Y-m-d H:i',$customer['created_time']); ?></td>
            <td><?php echo opt('yes',"javascript:;","class='audit' rel='{$customer['customer_id']}' title='审核该客户'"); ?></td>
       </tr>
       <?php endforeach; ?>
</table>
<div class="page_num">
     <div class="fl">
        <span></span>
     </div>
     <div class="fr">
        <p class="cpager">
            <?php echo $this->pager; ?>
        </p>
     </div>
</div>